FROM pig4cloud/java:8-jre

MAINTAINER zfsnyj@gmail.com

ENV TZ=Asia/Shanghai
ENV JAVA_OPTS="-Xms512m -Xmx1024m -Djava.security.egd=file:/dev/./urandom"

RUN ln -sf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

RUN mkdir -p /bpm-service/bpm-business-monitor

WORKDIR /bpm-service/bpm-business-monitor

EXPOSE 6160

ADD ./bpm-business-monitor.jar ./

CMD sleep 10;java $JAVA_OPTS -jar bpm-business-monitor.jar
